package org.springblade.core.oss;

import org.springblade.core.oss.model.BladeFile;
import org.springblade.core.oss.model.OssFile;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.List;

public interface OssTemplate {
	public void makeBucket(String bucketName);
	public void removeBucket(String bucketName);
	public void copyFile(String bucketName, String fileName, String destBucketName);
	public void copyFile(String bucketName, String fileName, String destBucketName, String destFileName);
	public OssFile statFile(String fileName);
	public String filePath(String fileName);
	public String fileLink(String fileName);
	public BladeFile putFile(MultipartFile file);
	public BladeFile putFile(String fileName, MultipartFile file);
	public BladeFile putFile(String fileName, InputStream stream);
	public void removeFile(String fileName);
	public void removeFiles(List<String> fileNames);
}
